<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    <table class="layui-table" style="padding: 0px 10px;margin: 0px 0px;width: 100%;">
        <colgroup>
            <col width="100">
        </colgroup>
        <tbody>
            <tr>
                <td><?=L('tpl_sl_01')?></td>
                <td><?=$skin['dir']?></td>
            </tr>
            <tr>
                <td><?=L('tpl_sl_02')?></td>
                <td><?=$skin['path']?></td>
            </tr>
        <?php if($op!='home'){ ?>
            <tr>
                <td><?=L('tpl_sl_03')?></td>
                <td><?=$skin['name']?></td>
            </tr>
        <?php } ?>
            <tr>
                <td><?=L('tpl_sl_04')?></td>
                <td><?=$skin['author']?></td>
            </tr>
            <tr>
                <td><?=L('tpl_sl_05')?></td>
                <td><?=$skin['version']?></td>
            </tr>
            <tr>
                <td><?=L('tpl_sl_06')?></td>
                <td><?=$skin['description']?></td>
            </tr>
        </tbody>
    </table>
<?php if($op == 'home'){ ?>
	<form class="layui-form" action="<?=site_url('skin/look_save')?>?ac=<?=$ac?>&op=<?=$op?>" method="post">
    <table class="layui-table" style="padding: 0px 10px;margin: 0px 0px;width: 100%;">
        <colgroup>
            <col width="100">
        </colgroup>
        <tbody>
			<tr>
				<td style="border-top:0px;"><?=L('tpl_sl_07')?></td>
				<td style="border-top:0px;"><input name="name" type="text" value="<?=$skin['name']?>" style="width:200px;height: 26px;line-height: 26px;border: 1px solid #E0D3D3;"/></td>
			</tr>
			<tr>
				<td><?=L('tpl_sl_08')?></td>
				<td><select name="vip" lay-ignore style="width:120px;border:1px solid #E0D3D3;">
					<option value="0"><?=L('tpl_sl_09')?></option>
					<?php 
					 $userzu=$this->db->query("SELECT id,name FROM ".CS_SqlPrefix."userzu order by xid asc")->result();
					 foreach ($userzu as $row) {
						 $check=($row->id==$skin['vip'])?' selected':'';
						 echo '<option value="'.$row->id.'"'.$check.'>'.$row->name.'</option>';
					 }
					?>
					</select>
					<?=L('tpl_sl_10')?>
				</td>
			</tr>
			<tr>
				<td><?=L('tpl_sl_11')?></td>
				<td><select name="level" lay-ignore style="width:120px;border:1px solid #E0D3D3;">
					<option value="0"><?=L('tpl_sl_09')?></option>
					<?php 
					 $userlevel=$this->db->query("SELECT id,name FROM ".CS_SqlPrefix."userlevel order by xid asc")->result();
					 foreach ($userlevel as $row) {
						 $checks=($row->id==$skin['level'])?' selected':'';
						 echo '<option value="'.$row->id.'"'.$checks.'>'.$row->name.'</option>';
					 }
					?>
					</select><?=L('tpl_sl_12')?>
				</td>
			</tr>
			<tr>
				<td><?=L('tpl_sl_13')?></td>
				<td><input name="cion" type="text"  value="<?=$skin['cion']?>" style="width:90px;height:26px;line-height: 26px;border: 1px solid #E0D3D3;"/>
			   <?=L('tpl_sl_14')?></td>
			</tr>
			<tr>
				<td></td>
				<input name="dir" type="hidden" value="<?=$dir?>">
				<td><input class="layui-btn" lay-submit lay-filter="setting" value="<?=L('tpl_sl_15')?>"/></td>
			</tr>
        </tbody>
    </table>
	</form>
<?php } ?>
<script type="text/javascript">
    cscms.init();
</script>
</body>
</html>
